(require 'package)
(add-to-list 'package-archives '("melpa" . "http://elpa.emacs-china.org/melpa/"))
(package-initialize)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
    (package-install 'use-package))

(setq custom-file (concat user-emacs-directory "custom-set-variables.el"))
(unless backup-directory-alist
    (setq backup-directory-alist `(("." . ,(concat user-emacs-directory
																		 "backups")))))

(add-to-list 'load-path (concat (expand-file-name user-emacs-directory) "mylisp/"))
(add-to-list 'load-path (concat (expand-file-name user-emacs-directory) "manlisp/"))

(require 'base-init)
(require 'edit-init)
(require 'package-init)
(require 'dired-init)
(require 'whichkey-init)
(require 'ivy-init)
(require 'dumb-jump-init)
(require 'csharp-init)
(require 'company-init)
(require 'magit-init)
(require 'pyim-init)
(require 'evil-init)
(require 'switch-window-init)
(require 'markdown-init)
(require 'yasnippet-init)

;;(use-package general :ensure t)
